package StudentManagement;

public class StudentSystem {
    public static void main(String[] args) {
        Student stu3 = new Student("2025005","孙七","大数据技术");
        stu3.setScore(85);
        Student stu4 = new Student("2025006","孙八","软件技术");
        stu4.setScore(99);
        Student stu5 = new Student("2025007","孙九","云计算");
        stu5.setScore(65);
        stu3.setScore(105);

        Student[] students = {stu3,stu4,stu5};

        double total = 0;
        System.out.println("学生信息列表: ");
        for (Student s : students){
            s.showInfo();
            total += s.getScore();
        }
        System.out.println("平均分: "+(total / students.length));
    }
}
